package com.bjx.generator.service;

import com.bjx.generator.domain.query.CreateCodeQuery;

import javax.servlet.http.HttpServletResponse;

/**
 * @desc: 生成代码业务接口
 * @author: liushuai
 * @date: 2022/9/22
 */
public interface ICreateCodeService {

    /**
     * 根据模板和表id下载生成的代码
     * @param createCodeQuery
     * @param response
     * @Author: liushuai
     * @Date: 2022/9/22
     */
    void downloadCode(CreateCodeQuery createCodeQuery, HttpServletResponse response);


    /**
     * 根据模板和表id创建代码
     * @param createCodeQuery
     * @Author: liushuai
     * @Date: 2022/9/22
     */
    void createCode(CreateCodeQuery createCodeQuery);
}
